<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" type="image/png" sizes="16x16" href="./logo_64x64.ico">
    <title>董氏留学测试卷概况</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="exam/fontawesome.css">
    <style>
        /* 基础样式 */
        body {
            background-color: #f8fafc;
            font-family: 'Inter', system-ui, sans-serif;
        }
        
        /* 组标题样式 */
       .group-title {
            position: relative;
            display: inline-block;
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
        }

       .hiddenCard{
           display: none;
       }
        
       .group-title::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 40px;
            height: 3px;
            border-radius: 2px;
        }
        
        /* 卡片悬停动画 */
       .card {
            transition: all 0.3s ease;
            transform: translateY(0);
        }
        
       .card:hover {
            transform: translateY(-5px);
        }
        
        /* 组容器间距 */
       .group-container {
            margin-bottom: 4rem;
        }
        
        /* 卡片阴影效果 */
       .card-shadow {
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
        }
        
       .card:hover.card-shadow {
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
        }
        
        /* 不同组的标题下划线颜色 */
       .group-tech.group-title::after {
            background-color: #3b82f6;
        }
        
       .group-design.group-title::after {
            background-color: #8b5cf6;
        }
        
       .group-marketing.group-title::after {
            background-color: #10b981;
        }
    </style>
</head>
<body class="p-4 md:p-8">
    <div class="container mx-auto max-w-7xl">
        <h1 class="text-3xl font-bold text-center mb-12 text-gray-800">董氏留学测试卷概况</h1>
        
        <!--  -->
        <div class="group-container group-tech">
            <h2 class="group-title text-2xl font-semibold text-gray-800">
                <i class="fa fa-code mr-2 text-blue-500"></i>出国留学类测试
            </h2>
            
            <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6">
                <!-- 卡片1 -->
                <div class="card bg-white rounded-xl overflow-hidden card-shadow">
                    <div class="h-48 bg-blue-100 relative">
                        <img src="./img/y1.jpg" alt="测试封面1" class="w-full h-full object-cover">
                        <div class="absolute hiddenCard top-3 right-3 bg-blue-600 text-white text-xs font-bold px-2 py-1 rounded">
                            热门
                        </div>
                    </div>
                    <div class="p-5">
                        <h3 class="font-bold text-lg mb-2 text-gray-800">出国留学语言水平测试卷</h3>
                        <p class="text-gray-600 text-sm mb-4 line-clamp-2">
                            考试难度⭐⭐
                        </p>
                        <div class="flex justify-between items-center">
                            <span class="text-blue-600 font-bold">40分钟</span>
                            <span class="text-gray-500 text-sm"><i class="fa fa-user mr-1"></i> 1243人测试</span>
                        </div>
                    </div>
                </div>
                
                <!-- 卡片2 -->
                <div class="card bg-white rounded-xl overflow-hidden card-shadow">
                    <div class="h-48 bg-blue-100">
                        <img src="./img/y2.jpg" alt="测试封面2" class="w-full h-full object-cover">
                    </div>
                    <div class="p-5">
                        <h3 class="font-bold text-lg mb-2 text-gray-800">出国留学语言水平测试卷</h3>
                        <p class="text-gray-600 text-sm mb-4 line-clamp-2">
                            考试难度⭐⭐⭐
                        </p>
                        <div class="flex justify-between items-center">
                            <span class="text-blue-600 font-bold">40分钟</span>
                            <span class="text-gray-500 text-sm"><i class="fa fa-user mr-1"></i> 956人测试</span>
                        </div>
                    </div>
                </div>
                
                <!-- 卡片3 -->
                <div class="card hiddenCard bg-white rounded-xl overflow-hidden card-shadow">
                    <div class="h-48 bg-blue-100">
                        <img src="https://picsum.photos/id/180/400/300" alt="Python数据分析课程封面" class="w-full h-full object-cover">
                    </div>
                    <div class="p-5">
                        <h3 class="font-bold text-lg mb-2 text-gray-800">Python 数据分析</h3>
                        <p class="text-gray-600 text-sm mb-4 line-clamp-2">
                            使用Python进行数据清洗、可视化及机器学习入门
                        </p>
                        <div class="flex justify-between items-center">
                            <span class="text-blue-600 font-bold">¥299</span>
                            <span class="text-gray-500 text-sm"><i class="fa fa-user mr-1"></i> 782人测试</span>
                        </div>
                    </div>
                </div>
                
                <!-- 卡片4 -->
                <div class="card hiddenCard bg-white rounded-xl overflow-hidden card-shadow">
                    <div class="h-48 bg-blue-100">
                        <img src="https://picsum.photos/id/119/400/300" alt="区块链技术课程封面" class="w-full h-full object-cover">
                    </div>
                    <div class="p-5">
                        <h3 class="font-bold text-lg mb-2 text-gray-800">区块链技术入门</h3>
                        <p class="text-gray-600 text-sm mb-4 line-clamp-2">
                            了解区块链基本原理、智能合约及去中心化应用开发
                        </p>
                        <div class="flex justify-between items-center">
                            <span class="text-blue-600 font-bold">¥349</span>
                            <span class="text-gray-500 text-sm"><i class="fa fa-user mr-1"></i> 451人测试</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!--  -->
        <div class="group-container group-design">
            <h2 class="group-title text-2xl font-semibold text-gray-800">
                <i class="fa fa-paint-brush mr-2 text-purple-500"></i>高中类测试
            </h2>
            
            <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6">
                <!-- 卡片1 -->
                <div class="card bg-white rounded-xl overflow-hidden card-shadow">
                    <div class="h-48 bg-purple-100 relative">
                        <img src="./img/g1.jpg" alt="UI设计课程封面" class="w-full h-full object-cover">
                        <div class="absolute hiddenCard top-3 right-3 bg-purple-600 text-white text-xs font-bold px-2 py-1 rounded">
                            新课
                        </div>
                    </div>
                    <div class="p-5">
                        <h3 class="font-bold text-lg mb-2 text-gray-800">测试试卷一</h3>
                        <p class="text-gray-600 text-sm mb-4 line-clamp-2">
                            考试难度⭐⭐⭐
                        </p>
                        <div class="flex justify-between items-center">
                            <span class="text-purple-600 font-bold">45分钟</span>
                            <span class="text-gray-500 text-sm"><i class="fa fa-user mr-1"></i> 632人测试</span>
                        </div>
                    </div>
                </div>

                <!-- 卡片2 -->
                <div class="card hiddenCard bg-white rounded-xl overflow-hidden card-shadow">
                    <div class="h-48 bg-purple-100">
                        <img src="https://picsum.photos/id/65/400/300" alt="平面设计课程封面" class="w-full h-full object-cover">
                    </div>
                    <div class="p-5">
                        <h3 class="font-bold text-lg mb-2 text-gray-800">平面设计实战</h3>
                        <p class="text-gray-600 text-sm mb-4 line-clamp-2">
                            学习海报设计、品牌标识及印刷品设计的实用技巧
                        </p>
                        <div class="flex justify-between items-center">
                            <span class="text-purple-600 font-bold">¥189</span>
                            <span class="text-gray-500 text-sm"><i class="fa fa-user mr-1"></i> 875人测试</span>
                        </div>
                    </div>
                </div>
                
                <!-- 卡片3 -->
                <div class="card bg-white rounded-xl overflow-hidden card-shadow">
                    <div class="h-48 bg-purple-100">
                        <img src="./img/g2.jpg" alt="3D建模课程封面" class="w-full h-full object-cover">
                    </div>
                    <div class="p-5">
                        <h3 class="font-bold text-lg mb-2 text-gray-800">测试试卷二</h3>
                        <p class="text-gray-600 text-sm mb-4 line-clamp-2">
                            考试难度⭐⭐⭐⭐
                        </p>
                        <div class="flex justify-between items-center">
                            <span class="text-purple-600 font-bold">45分钟</span>
                            <span class="text-gray-500 text-sm"><i class="fa fa-user mr-1"></i> 342人测试</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 卡片 -->
        <div class="group-container group-marketing">
            <h2 class="group-title text-2xl font-semibold text-gray-800">
                <i class="fa fa-line-chart mr-2 text-green-500"></i>初中类测试
            </h2>
            
            <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6">
                <!-- 卡片1 -->
                <div class="card hiddenCard bg-white rounded-xl overflow-hidden card-shadow">
                    <div class="h-48 bg-green-100">
                        <img src="https://picsum.photos/id/28/400/300" alt="数字营销课程封面" class="w-full h-full object-cover">
                    </div>
                    <div class="p-5">
                        <h3 class="font-bold text-lg mb-2 text-gray-800">数字营销策略</h3>
                        <p class="text-gray-600 text-sm mb-4 line-clamp-2">
                            学习社交媒体营销、内容营销及转化漏斗优化
                        </p>
                        <div class="flex justify-between items-center">
                            <span class="text-green-600 font-bold">¥179</span>
                            <span class="text-gray-500 text-sm"><i class="fa fa-user mr-1"></i> 987人测试</span>
                        </div>
                    </div>
                </div>
                
                <!-- 卡片2 -->
                <div class="card bg-white rounded-xl overflow-hidden card-shadow">
                    <div class="h-48 bg-green-100">
                        <img src="./img/c1.jpg" alt="SEO优化课程封面" class="w-full h-full object-cover">
                    </div>
                    <div class="p-5">
                        <h3 class="font-bold text-lg mb-2 text-gray-800">测试试卷一</h3>
                        <p class="text-gray-600 text-sm mb-4 line-clamp-2">
                            考试难度⭐⭐⭐
                        </p>
                        <div class="flex justify-between items-center">
                            <span class="text-green-600 font-bold">45分钟</span>
                            <span class="text-gray-500 text-sm"><i class="fa fa-user mr-1"></i> 654人测试</span>
                        </div>
                    </div>
                </div>
                
                <!-- 卡片3 -->
                <div class="card bg-white rounded-xl overflow-hidden card-shadow">
                    <div class="h-48 bg-green-100">
                        <img src="./img/c1.jpg" alt="数据分析课程封面" class="w-full h-full object-cover">
                    </div>
                    <div class="p-5">
                        <h3 class="font-bold text-lg mb-2 text-gray-800">测试试卷二</h3>
                        <p class="text-gray-600 text-sm mb-4 line-clamp-2">
                            考试难度⭐⭐⭐
                        </p>
                        <div class="flex justify-between items-center">
                            <span class="text-green-600 font-bold">45分钟</span>
                            <span class="text-gray-500 text-sm"><i class="fa fa-user mr-1"></i> 529人测试</span>
                        </div>
                    </div>
                </div>
                
                <!-- 卡片4 -->
                <div class="card bg-white rounded-xl overflow-hidden card-shadow">
                    <div class="h-48 bg-green-100">
                        <img src="./img/c1.jpg" alt="电商运营课程封面" class="w-full h-full object-cover">
                    </div>
                    <div class="p-5">
                        <h3 class="font-bold text-lg mb-2 text-gray-800">测试试卷三</h3>
                        <p class="text-gray-600 text-sm mb-4 line-clamp-2">
                            考试难度⭐⭐⭐
                        </p>
                        <div class="flex justify-between items-center">
                            <span class="text-green-600 font-bold">45分钟</span>
                            <span class="text-gray-500 text-sm"><i class="fa fa-user mr-1"></i> 723人测试</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // 为卡片添加点击事件，模拟课程详情跳转
        document.querySelectorAll('.card').forEach((card,index) => {
            card.addEventListener('click', function() {
                const courseTitle = this.querySelector('h3').textContent;
                // console.log(index);
                if (index === 0){
                    window.open('./exam.html', '_blank');
                }
                else if (index === 1){
                    window.open('./exam2.html', '_blank');
                }
                else {
                    alert(`此内容：${courseTitle}  正在设计中或未开启使用`);
                }
                // 在实际应用中，这里会跳转到课程详情页
                // alert(`将跳转到：${courseTitle}`);
            });
        });
    </script>
</body>
</html>
    